{% extends'CNAMActimanBundle::layoutBody.html.twig' %}
{% block body %}

    {% block content %}
        <div class="row">
            <ul class="breadcrumb" style="margin-bottom: 5px;">
                <li>
                    Vous êtes ici :  
                </li>
                <li>
                    <a href="#">Gestion procédures</a>  
                </li>
                <li>
                    <a href="#">Modifier</a>  
                </li>
                <li>
                    <a href="#">Ajout d'une phase</a>  
                </li>
            </ul>
            <div class="col-lg-12">
                <h2>{{ Procedure.nomProcedure}}</h2>
                <h3>Responsable : {{ Procedure.user.nomUser }}</h3>
                <h3>{{ Procedure.description }}</h3>
                <hr align="center" width="90%" size="5">
            </div>
            {{ include('CNAMActimanBundle:Procedure:phaseFormulaire.html.twig') }}

            <div class="col-lg-12">
                <h3>Liste des phases</h3>
                <div class="table-responsive">
                    <table class="table table-bordered table-hover tablesorter">
                        <thead>
                            <tr>
                                <th width="75%">Phase <i class="fa fa-sort"></i></th>
                                <th><center>Action <i class="fa fa-sort"></i></center></th>
                        </tr>
                        </thead>
                        <tbody>
                            {% for Phase in Phases %}
                                <tr>
                                    <td>{{ Phase.nomPhase }}</td>
                                    <td><center><a href="{{ path('cnam_actiman_procedure_phaseEdit', {'idpha': Phase.id}) }}">Editer</a> / <a href="{{ path('cnam_actiman_procedure_phaseDelete', {'idpha': Phase.id}) }}">Suprimer</a> - <a href="{{ path('cnam_actiman_procedure_operationAdd', {'idpha':Phase.id}) }}" class="btn btn-info btn-sm">Ajouter une opération</a></center></td>
                            </tr>
                        {% endfor %}
                        </tbody>
                    </table>
                </div>
            </div> 
        </div> 
    {% endblock%}

{% endblock%}

